package com.lhd.shop.controller;

import com.lhd.shop.service.FrontService;
import dto.CouponDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import service.FrontDeskService;
import vo.ResponseData;

import java.util.List;

/**
 * @program: sporadic
 * @description:
 * @author: LHD   QQ:1727865856
 * @create: 2019-12-02 12:44
 **/
@RestController
@RequestMapping("/coupon")
public class CouponController {
    @Autowired
    private FrontService frontService;

    @GetMapping("/queryByphoneANDmid")
    public ResponseData<List<CouponDTO>> query(String phone, Integer mid) {
        return frontService.queryByphoneANDmid(phone, mid);
    }
}
